<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label required">HOST</label>
    <div class="layui-input-block">
        <input type="text" name="config[host]" class="layui-input" lay-verify="required" placeholder="请输入HOST" value="{$row.config.host|default=''}">
    </div>
</div>
<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label required">PORT</label>
    <div class="layui-input-block">
        <input type="text" name="config[port]" class="layui-input" lay-verify="required" placeholder="请输入PORT" value="{$row.config.port|default='21'}">
    </div>
</div>
<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
        <input type="text" name="config[username]" class="layui-input" placeholder="请输入用户名" value="{$row.config.username|default=''}">
    </div>
</div>
<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
        <input type="text" name="config[password]" class="layui-input" placeholder="请输入密码" value="{$row.config.password|default=''}">
    </div>
</div>
<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label">模式</label>
    <div class="layui-input-block">
        <input type="radio" name="config[passive]" value="1" title="被动模式（默认）" {eq name='row.config.passive|default="1"' value='1'}checked{/eq} class="layui-input">
        <input type="radio" name="config[passive]" value="0" title="主动模式" {eq name='row.config.passive|default="1"' value='0'}checked{/eq} class="layui-input">
    </div>
</div>
<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label">SSL</label>
    <div class="layui-input-block">
        <input type="radio" name="config[ssl]" value="1" title="开启" {eq name='row.config.ssl|default="0"' value='1'}checked{/eq} class="layui-input">
        <input type="radio" name="config[ssl]" value="0" title="关闭（默认）" {eq name='row.config.ssl|default="0"' value='0'}checked{/eq} class="layui-input">
    </div>
</div>

<div class="layui-form-item" v-if="configType == 'ftp'">
    <label class="layui-form-label required">地址前缀</label>
    <div class="layui-input-block">
        <input type="text" name="config[root]" class="layui-input" lay-verify="required" placeholder="请输入地址前缀" value="{$row.config.root|default='/uldisk/'}">
        <tip>建议以/开头，否则目录可能会基于ftp账号配置发生意外变化</tip>
    </div>
</div>